<template>
    <div class="index" >
		     <hr style='margin-top:10px'>
		     <div class="operation" style='margin-top:30px'>
		    	<template>
				     <Table border :columns="columns7" :data="data6"></Table>
				</template>
		    </div>
		    <hr style='margin-top:10px'>
    </div>
</template>
<script>
    /* eslint-disable space-before-function-paren */
    import qinghua from '../../../images/timg.jpg';
    import {exam} from '../../../../api/index.js';
    export default {
        data () {
            return {
                banners: [
              { imgUrl: qinghua }
                ],
                columns7: [
                    {
                        title: '学校',
                        key: 'school_name'
                    },
                    {
                        title: '学生人数',
                        key: 'student_num'
                    },
                    {
                        title: '院士人数',
                        key: 'academician_num'
                    },
                    {
                        title: '硕士点个数',
                        key: 'master_point_num'
                    },
                    {
                        title: '博士点个数',
                        key: 'doctor_num'
                    },
                    {
                        title: '学校综合排名',
                        key: 'school_rank'
                    }

                ],
                data6: [
//                    {
//                        collegeName: '清华大学',
//                        majorName: '29584',
//                        plan: '72',
//                        voluntaryRisk: 312,
//                        coefficient: 263
//                    },
//                    {
//                        collegeName: '北京大学',
//                        majorName: '37361',
//                        plan: '74',
//                        voluntaryRisk: 271,
//                        coefficient: 253
//                    },
//                    {
//                        collegeName: '复旦大学',
//                        majorName: '38291',
//                        plan: '37',
//                        voluntaryRisk: 219,
//                        coefficient: 153
//                    }
                ]
            };
        },
        mounted() {

            exam.getPKresultByIds({data: {ids: this.$route.params.ids}}).then((res) => {

                this.data6 = res.data.data.collectinfo;
            }, function (error) {
                this.message(error);
            });
        }
    };
</script>

